﻿@model LAPI.Data.Model.Usuario

<div class="row">
    <h2>Si has olvidado tu contraseña</h2>
    <h3>Teclea tu direccion de correo y te la enviamos de nuevo...<h3>
</div>
<hr />

<div class="marketing">
    <div class="row">
        @using (Ajax.BeginForm(
            actionName: "RecordarPassword",
            controllerName: "Usuario",
            routeValues: null,
            ajaxOptions: new AjaxOptions { HttpMethod = "Post"  /*, InsertionMode = System.Web.Mvc.Ajax.InsertionMode.InsertBefore, UpdateTargetId = "alerts"*/, OnFailure = "PostFailure", OnSuccess = "PostSuccess", OnComplete = "PostOnComplete" },
            htmlAttributes: new Dictionary<string, object> { { "class", "form-horizontal" } }
        ))
        { 

                <div class="control-group">
                    <!-- @LAPI.Web.Helpers.LabelExtensions.LabelFor(this.Html, m => m.User, new Dictionary<string, object> { { "class", "control-label" } })-->
                    <div class="controls">
                        @LAPI.Web.Helpers.TextBoxExtension.TextBoxFor(this.Html, m => m.Email, new Dictionary<string, object> { { "class", "span3" }, { "placeholder", "introduzca su dirección de correo..." } })
                    </div>
                </div>

            <div class="control-group">
                <div class="controls">
                    <button type="submit" class="btn btn-success">
                        <i class="icon-ok"></i>
                        Recordar Contraseña</button>
                    <a class="btn btn-danger" href="@Url.Action(actionName: "Login", controllerName: "Usuario")">
                        <i class="icon-remove"></i>
                        Cancelar
                    </a> 
                </div> 
            </div>                                     
        }
    </div>
    <div class="row">
        <div id="msg" class="span5"></div> 
    </div>
</div>

@section Script {   
<script type="text/javascript">
    document.forms[0].Email.focus();
</script>
}
